package com.mall.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.entity.ShoppingCart;
import com.mall.entity.ShoppingCartVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {
    public List<ShoppingCartVO> selectShopCartByUserId(Integer userId);
    public int updateCartNumByCartId(@Param("cartId") Integer cartId,@Param("cartNum") Integer cartNum);
    //public int deleteCartRecordByCartId(Integer cartId);
    public List<ShoppingCartVO> selectShopCartByIds(Integer[] cids);
}
